﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace wsn
{
    public class Message
    {
        private string host;
        private string user;
        private string password;
        private string database;
        public string Host
        {
            get { return this.host; }
            set { this.host = value; }
        }
        public string User
        {
            get { return this.user; }
            set { this.user = value; }
        }
        public string Password
        {
            get { return this.password; }
            set { this.password = value; }
        }
        public string Database
        {
            get { return this.database; }
            set { this.database = value; }
        }
        public Message()
        { }
        public Message(string host, string user, string password, string database)
        {
            this.host = host;
            this.user = user;
            this.password = password;
            this.database = database;
        }
        public Message(Message obj)
        {
            this.host = obj.host;
            this.user = obj.user;
            this.password = obj.password;
            this.database = obj.database;
        }
        public string GetString()
        {
            string temp = "host=";
            temp += this.host + ";user=";
            temp += this.user + ";password=";
            temp += this.password + ";database=";
            temp += this.database;
            return temp;
        }
    }
}
